<html>
  <head>
  
  <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
  <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
  
  <title>Test Aup</title>
  	<script src="js/jquery.js"></script>
	<script src="js/aupQuery.js"></script>
	<script src="js/aup.js"></script>
	
	<script>
		
		$(function() {
			var context = {var1:100, var2:200, colore:'blue'};
			/*
  			var template = aup.util.parse('ciao');
  			alert(template.render(context, {}));
  			alert(JSON.stringify(template.variables));
  			
  			template = aup.util.parse('${var1}');
  			alert(template.render(context, {}));
  			
  			template = aup.util.parse('ciao-   ${var1}    ciao');
  			alert(template.render(context, {}));
  			
  			template = aup.util.parse('${var2} ciao-   ${var1}    ciao ${var1} ${var2} ${var1} ');
  			alert(template.render(context, {}));
  			alert(JSON.stringify(template.variables));
  			
  			var template = aup.util.parse('color: ${colore}');
  			alert(template.render(context, {}));
  			alert(JSON.stringify(template.variables));
			
			var styles = aup.util.parseStyle('color: ${colore};');
  			alert(styles['color']);
  			
  			styles = aup.util.parseStyle('color: ${colore}; ciao: ciao1');
  			alert(styles['ciao']);
  			
  			styles = aup.util.parseStyle('color: ${colore}; ciao: ciao1;');
  			alert(styles['ciao']);
			
			//alert(aup.util.parseClass('col c3  tr534 234')[2]);
  			*/
			var expression = new TemplateExpression(['widgetName']);
  			alert(JSON.stringify(expression.match('red')));
  			alert(expression.match('element or something'));
			
			
			/*var bc = new Bindings(context, {test: {varb:'ok', var3: 100}});
			var template = aup.util.parse('cm_def_{currentMail == undefined}');
  			alert(template.render(bc));*/
  			
  			
		});
  	</script>
  </head>
  <body>
  	
    
  </body>
</html>